package com.zxy.springboot_vue.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lenovo
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class City implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value = "value")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer pid;

    @JsonProperty(value = "label")
    private String cityname;

    private Integer type;

    @TableField(exist = false)
    private List<City> children;


}
